from django.contrib import admin

# Register your models here.
from login.models import SiteUser

class SiteUserAdmin(admin.ModelAdmin):              #定义后台的展示出来的内容
    list_display = ('name','gender','email')
    list_display_links = ['name']
    list_filter = ('gender','create_time')
admin.site.register(SiteUser,SiteUserAdmin)         #将数据库的SiteUser和这里的SiteUser模块进绑定

